<template>
  <!-- <nav>顶部通栏</nav> -->
  <AppTopnav></AppTopnav>
  <!-- <header class="header">头部</header> -->
  <AppHeader></AppHeader>
  <!-- 头部吸顶 -->
  <AppHeaderSticky />
  <main>
    <!-- 二级路由 -->
    <router-view></router-view>
  </main>
  <AppFooter></AppFooter>
</template>

<script>
import AppTopnav from '../components/app-topnav.vue'
import AppHeader from '../components/app-header.vue'
import AppFooter from '../components/app-footer.vue'
import AppHeaderSticky from '../components/app-header-sticky.vue'
import { useStore } from 'vuex'
export default {
  components: {
    AppTopnav,
    AppHeader,
    AppFooter,
    AppHeaderSticky
  },
  setup () {
    const store = useStore()
    store.dispatch('category/getList')
  }
}
</script>

<style lang="less">
// @import '../assets/styles/variables.less';
.header {
  // color: @sucColor;
  // .hoverShadow();
}
</style>
